#include "head.h"




struct C
{
	int a;
	int b;
	int c;
};
int test2(int x, int y, int z)
{
	printf("hello,test2\n");
	return 0;
}
int test(int x, int y, int z)
{
	int a = 1;
	int b = 2;
	int c = 3;
	struct C st;
	printf("addr x = %u\n",(unsigned int)(&x));
	printf("addr y = %u\n",(unsigned int)(&y));
	printf("addr z = %u\n",(unsigned int)(&z));
	printf("addr a = %u\n",(unsigned int)(&a));
	printf("addr b = %u\n",(unsigned int)(&b));
	printf("addr c = %u\n",(unsigned int)(&c));
	printf("addr st = %u\n",(unsigned int)(&st));
	printf("addr st.a = %u\n",(unsigned int)(&st.a));
	printf("addr st.b = %u\n",(unsigned int)(&st.b));
	printf("addr st.c = %u\n",(unsigned int)(&st.c));
	return 0;
} 
int main(int argc, char** argv)
{
	int x = 1;
	int y = 2;
	int z = 3;
	test(x,y,z);
	printf("x = %d; y = %d; z = %d;\n", x,y,z);
	memset(&y, 0, 8);
	printf("x = %d; y = %d; z = %d;\n", x,y,z);
	return 0;
}

/*
addr x = 2098447468
addr y = 2098447464
addr z = 2098447460
addr a = 2098447476
addr b = 2098447480
addr c = 2098447484
addr st = 2098447488
addr st.a = 2098447488
addr st.b = 2098447492
addr st.c = 2098447496
x = 1; y = 2; z = 3;
x = 0; y = 0; z = 3;
*/
